update() {
    sudo rm -fv /etc/apt/sources.list
    sudo rm -fv /etc/apt/sources.list.d/debiancn.list; # 移除旧格式 sources.list 文件
    echo 'Enabled: yes
Types: deb
URIs: http://mirrors.ustc.edu.cn/debiancn/
Suites: bookworm
Components: main
Signed-By: /usr/share/keyrings/debiancn-keyring.gpg
' | sudo tee /etc/apt/sources.list.d/debiancn.sources
    echo 'deb https://mirrors.ustc.edu.cn/debian/ trixie main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ trixie main contrib non-free non-free-firmware

deb https://mirrors.ustc.edu.cn/debian/ trixie-updates main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ trixie-updates main contrib non-free non-free-firmware

deb https://mirrors.ustc.edu.cn/debian/ trixie-backports main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ trixie-backports main contrib non-free non-free-firmware

deb https://mirrors.ustc.edu.cn/debian-security/ trixie-security main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian-security/ trixie-security main contrib non-free non-free-firmware
' | sudo tee /etc/apt/sources.list
    wget https://mirrors.ustc.edu.cn/debiancn/pool/main/d/debiancn-keyring/debiancn-keyring_0~20250123_all.deb -O /tmp/debiancn-keyring.deb;
    sudo apt install /tmp/debiancn-keyring.deb;
    sudo apt update;
    rm /tmp/debiancn-keyring.deb;
 }
 update